package au.org.arcs.dss.provider;

import au.org.arcs.dss.provider.dataset.facade.DataSetFacade;

/**
 *
 * @author ming
 */
public class DataSetServiceLocator {
  
  private static DataSetServiceLocator instance;
  private static DataSetFacade dataSetFacade;

  private DataSetServiceLocator() {}

  public static DataSetServiceLocator getInstance() {
    if(instance == null) {
      instance = new DataSetServiceLocator();
    }

    return instance;
  }

  public DataSetFacade getDataSetFacade() {
    if (dataSetFacade == null) {
      dataSetFacade = new DataSetFacade();
    }

    return dataSetFacade;
  }
}